<!DOCTYPE html>
<html>
<head>
<title>work_item_dtl</title>
<#include "/sys/newheader.html"/>
</head>
<body>
<div id="rrapp" class="main-content">
	<div class="box box-main">
		<div class="box-header">
			<div class="box-title">
				<i class="fa fa-navicon"></i> 作业项管理
			</div>
			<div class="box-tools pull-right">
				<a href="javascript:void(0);" class="btn btn-default" id="btnSearch" title="查询" @click="toggle"><i class="fa fa-filter"></i> {{btnText}}</a>
				<button type="button"  class="btn btn-default" @click="create"><i class="fa fa-plus"></i> 新增</button>
				<button type="button"  class="btn btn-default" @click="update"><i class="fa fa-pencil"></i> 修改</button>
				<button type="button" class="btn btn-default" @click="del"><i class="fa fa-trash-o"></i> 删除</button>
				<a href="javascript:void(0);" class="btn btn-default" id="btnUpdateSort" title="保存执行顺序" @click="updateSort"><i class="fa fa-sort-amount-asc"></i> 保存执行顺序</a>
				<button type="button" class="btn btn-default" @click="paramMgr" ><i class="fa fa-file-code-o"></i> 参数管理</button>
				<button type="button" class="btn btn-default" @click="runOnce" ><i class="fa fa-bolt"></i> 立即执行</button>
				&nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="back" value="返回"/>
			</div>
		</div>
		<div class="box-body">
			<div class="form-inline" v-show="isShowCond">
				<div class="form-group">
					<label class="control-label">名称</label>
					<div class="control-inline">
						<input type="text" class="form-control" v-model="qryForm.itemName" placeholder="名称"/>
					</div>
				</div>
				<div class="form-group">
					<label class="control-label">状态</label>
					<div class="control-inline">
						<select class="form-control width-140" v-model="qryForm.status" placeholder="状态">
							<option value=""></option>
							<template v-for="option in statusList">
								<option :value="option.dictCode" v-if="option.dictCode == qryForm.status" selected>
									{{ option.dictName }}
								</option>
								<option :value="option.dictCode" v-else>
									{{ option.dictName }}
								</option>
							</template>
						</select>
					</div>
				</div>
				<div class="form-group">
					<button type="submit" class="btn btn-primary btn-sm" @click="query">查询</button>
					<button type="reset" class="btn btn-default btn-sm" @click="reset">重置</button>
				</div>
			</div>
		<table id="jqGrid"></table>
		<div id="jqGridPager"></div>
		</div>
	</div>
</div>

<script src="${base}/js/work/workItem.js?_${.now?string['yyyyMMddhhmmSS']}"></script>
</body>
</html>
